<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>评论管理-个人中心-魔步网</title>
<?php include_once(VIEWPATH."public/header_title.php");?>
<link href="<?php echo _get_cfg_path('css')?>base.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('css')?>common.css" type="text/css" rel="stylesheet" />
<link href="<?php echo _get_cfg_path('lib')?>uploadify/uploadify.css" type="text/css" rel="stylesheet" />
<!--[if IE 6]>
<script src="<?php echo _get_cfg_path('js')?>DD_belatedPNG.js" type="text/javascript" ></script>
<script>DD_belatedPNG.fix('a,img');</script>
<![endif]-->
</head>
<body>
<?php include_once(VIEWPATH."public/header.php");?>
<div class="mainbody" id="mainbody">
    <div class="container mrgB30">
        <div class="member clearfix">
            <?php include_once(VIEWPATH."m/public/left_menu.php");?>
            <div class="fr uc_content">
            	<?php include_once(VIEWPATH."m/public/notice.php");?>
                <div class="clearfix uitopg">
                    <div class="transa">
                        <div class="aut_bti">评论管理</div>
                        <table class="tran_tab" width="100%" border="0" cellspacing="0" cellpadding="0">
                            <tbody>
                            	<tr>
	                              <th>留言</th>
	                              <th width="180">操作</th>
                            	</tr>
                        	</tbody>
                        </table>
                        <ul class="tran_tab">
                        <?php foreach ($list['rows'] as $key => $a): ?>
                            <li class="clearfix t_review">
                              <div class="em_rit fl">
                                  <?php if(empty($a['commentid'])) :?>
                                  <div class="apprtop">           
<!--                                       <div class="fl a_rev"><span>身材尺寸：</span><p class="star_on"><i class="star_<?=$a['figure'];?>">5</i></p></div>-->
                                       <div class="fl a_rev"><span>专业技能：</span><p class="star_on"><i class="star_<?=$a['skill'];?>">5</i></p></div>
                                       <div class="fl a_rev"><span>工作效率：</span><p class="star_on"><i class="star_<?=$a['efficiency'];?>">5</i></p></div>
                                       <div class="fl a_rev" style="margin-right:0;"><span>工作态度：</span><p class="star_on"><i class="star_<?=$a['attitude'];?>">5</i></p></div>
                                  </div>
                                  <?php endif?>
                                  <div class="apprcon"><?=$a['memo'];?>
                                  </div>
                                   <div class="clearfix" style="margin-bottom:20px;">
                                        <span class="fl">by：<a target="_blank" href="/i/index/<?=$a["userid"]?>" class="comment_user_a" style="padding-left:0px;"><?=$a['nickname'];?></a></span><em class="fr"><?=date('Y-m-d H:i:s',$a['addtime']);?></em>       
                                   </div>
                                   <!-- 回复评论 -->
                                   <?php if(!empty($a['reply'])) :
                                        foreach ($a['reply'] as  $v) :?>
                                        <div class="apprcon clearfix" style="margin-left:10px;">
                                        	<p class="fl"><a href="/i/index/<?=$v["userid"]?>" class="comment_user_a" style="padding-left:0px;"><?=$v["nickname"]?></a>回复&nbsp;<a href="/i/index/<?=$v["touserid"]?>" class="comment_user_a" style="padding-left:0px;"><?=$v['tonickname'];?></a>：</p>
                                        	<p class="">
                                        		<?=$v['memo']?>
                                        	</p>
                                        </div>
                                        <?php if ($v['userid'] == $this->loginID) :?>
                                            <span class="fr appcom_get">
                                                <a href="<?php echo base_url().'m/comment/edit?orderid='._get_key_val($v['id'])?>">编辑</a>
                                                <a href="javascript:;" onclick="delete_reply(<?php echo $v['id']?>)">删除</a>
                                            	<span><?=date('Y-m-d H:i:s',$v['addtime']);?></span> 
                                            </span>
                                      	<?php endif?>
                                   <?php 
                                   endforeach;
                                   endif?>
                                </div>
                                <?php if(empty($a['commentid']) && empty($a['reply'])){ ?>
                                <div class="fl operat"><a class="t_delete" href="/m/comment/add?commentid=<?=_get_key_val($a['id'])?>&orderid=<?=_get_key_val($a['orderid'])?>"><i></i>回复</a></div>
                                <?php }?>
                                <!--  <a class="t_editor fr" href="javascript:;" onclick="alertWin(this)"><i></i>投诉</a> -->
                                <div style="clear:both"></div>
                                <div class="fabiao reply">
                                  <textarea id="starcontent" name="content" cols="" class="texta" placeholder="谢谢哦，下次有机会继续合作哦~~"></textarea>
                                    <br><br>
                                    <input name="" type="submit" class="but" value="创建"><input name="" type="submit" class="but but_2" value="取消">
                                </div>
                            </li>
                        <?php endforeach;?>
                        </ul>
                        <div class="page">
                          <?=$list['pages']?>
                        </div>
                    </div>
                </div>

            </div>
        </div>
        <div class="help_bottom"></div>
    </div> 
</div>
<!--mainbody-->
<?php include_once(VIEWPATH."public/footer.php");?>
</body>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery-1.11.2.min.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>pages/m/comment.js"></script>
<script type="text/javascript" src="<?php echo _get_cfg_path('js')?>jquery.SuperSlide.2.1.1.js"></script>
<script>jQuery(".txtScroll-top").slide({titCell:".hd ul",mainCell:".bd ul",autoPage:true,effect:"topLoop",autoPlay:true});</script>
<script>
//微信二维码
$(function(){
	$(".wx_qrcode").hide();
	$(".f_weixin,.wx_qrcode").hover(function(){
		$(".wx_qrcode").show();
	},function(){
		$(".wx_qrcode").hide();
	})
});
</script>
</html>